set(ldap_common_SOURCES
	LdapBrowseDialog.cpp
	LdapBrowseDialog.ui
	LdapBrowseDialog.h
	LdapBrowseModel.cpp
	LdapBrowseModel.h
	LdapClient.cpp
	LdapClient.h
	LdapConfiguration.cpp
	LdapConfiguration.h
	LdapConfigurationPage.h
	LdapConfigurationPage.cpp
	LdapConfigurationPage.ui
	LdapConfigurationTest.h
	LdapConfigurationTest.cpp
	LdapDirectory.cpp
	LdapDirectory.h
	LdapNetworkObjectDirectory.cpp
	LdapNetworkObjectDirectory.h
	ldap.qrc
	)

add_library(ldap-common SHARED ${ldap_common_SOURCES})
target_compile_options(ldap-common PRIVATE ${VEYON_COMPILE_OPTIONS})
target_include_directories(ldap-common PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(ldap-common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(ldap-common kldap-light veyon-core)
set_default_target_properties(ldap-common)
set_target_properties(ldap-common PROPERTIES LINK_FLAGS "-Wl,-no-undefined")
install(TARGETS ldap-common DESTINATION ${VEYON_LIB_DIR})
cotire_veyon(ldap-common)
